import { post, get, download } from "../../../utils/request";
import { getCurrentTenant } from "../../../utils/utils";

export default {
  fetchMessageList: data => post("mgt/message/page", { ...data, tenantCodeList: (getCurrentTenant() || { tenantCode: '' }).tenantCode }),
  // fetchMessageList: data => post("mgt/msgSource/message/list", data),
  exportExcel: data => download("mgt/msgSource/export", data),
  repush: data => get("mgt/message/repush", data),
  // 部门
  fetchDepList: data => post("mgt/msgSource/message/ownerDept", data)
};
